import {createApp} from 'vue'
import './style.css'
import App from './App.vue'
// 挂载路由
import router from "./router";

// 导入Element-Plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// 导入pinia
import { createPinia } from 'pinia'
const pinia = createPinia()

const app = createApp(App)


app.use(router)
    .use(ElementPlus)
    .use(pinia)

app.mount('#app')

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}